package com.dao;

import com.dto.CommentDTO;
import com.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author linyukun
 * @date 2022/10/18 15:57
 */
@Mapper
@Repository
public interface CommentDao {

    Integer addComment(@Param("dto") CommentDTO dto);

    Integer delComment(@Param("dto") CommentDTO dto);

    List<CommentVO> getCommentList(@Param("dto")CommentDTO dto);

    Integer auditComment(@Param("dto")CommentDTO dto);

    CommentVO getCommentById(@Param("id")Integer id);
}
